import 'package:flutter_shark_im/entity/message/base_message_entity.dart';

class AuthenticationEntity {
	int no;
	String createTime;
	String name;
	int id = BaseMessageEntity.AUTHENTICATION;
	String avatar;

	AuthenticationEntity({this.no, this.createTime, this.name, this.avatar});

	AuthenticationEntity.fromJson(Map<String, dynamic> json) {
		no = json['no'];
		createTime = json['createTime'];
		name = json['name'];
		id = json['id'];
		avatar = json['avatar'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['no'] = this.no;
		data['createTime'] = this.createTime;
		data['name'] = this.name;
		data['id'] = this.id;
		data['avatar'] = this.avatar;
		return data;
	}
}
